package com.atguigu.process.bean;

import org.springframework.stereotype.Component;

/**
 * ClassName: UserBean
 * Package: com.atguigu.process.bean
 * Description:
 *
 * @Author 蹇泽阳
 * @Create 2023/11/20 23:00
 * @Version 1.0
 */
@Component
public class UserBean {
  
  public String getUsername(int id) {
    if (id == 1) {
      return "JianJinLi";
    }
    if (id == 2) {
      return "LiuQi";
    }
    return "admin";
  }
}
